package com.gc.server.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * 线下报单实体
 * 表名 img_order
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Apr 23 17:07:10 CST 2020
 */
@Setter
@Getter
public class ImgOrderEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
    //IMG-产品票据
    private String img;
    //用户手机号
    private String mobile;
    //用户ID
    private Long cusId;
    //药店ID
    private Long userId;
    //时间
    private Date date;
    //起止时间
    Date[] dates;
    //备注
    private String remark;
    //ENUM-状态:"WAIT-待审核","PASS-通过","REFUSE-拒绝"
    private Integer status;

    //积分
    private BigDecimal point;

    //兑费
    private BigDecimal money;

    //类型
    private Long typeId;

    //审核人Id
    private Long adminId;

    //审核人名
    private String adminName;

    //上级信息
    private String topInfo;

    //价值
    private BigDecimal price;

    //数量
    private Integer quantity;

    //拒绝原因
    private String info;

    private List<ImgOrderItemEntity> items;

    public ImgOrderEntity(){

    }

    public ImgOrderEntity(String img, String mobile, Long userId, Date date, Integer status,Long cusId,Long typeId,String remark,String topInfo) {
        this.img = img;
        this.mobile = mobile;
        this.userId = userId;
        this.date = date;
        this.status = status;
        this.cusId = cusId;
        this.typeId = typeId;
        this.remark = remark;
        this.topInfo = topInfo;
    }
}
